home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / psetuid.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Psetuid(2)                 Oct. 1, 1991                Psetuid(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Psetuid, Psetgid - change a process' user or group id
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        WORD Psetuid(WORD uid);
  12.        WORD Psetgid(WORD gid);
  13.  
  14. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  15.        _✓P_✓s_✓e_✓t_✓u_✓i_✓d  sets  the  user id of the current process to _✓u_✓i_✓d,
  16.        which must be a number between 0 and 255 inclusive.   This
  17.        function  call  will fail if the user id is not already 0,
  18.        so once a process' user id is set it  is  fixed.   _✓P_✓s_✓e_✓t_✓u_✓i_✓d
  19.        returns  _✓u_✓i_✓d, if the call is successful, and EACCDN if the
  20.        process does not have the authority to change its own user
  21.        id  (i.e. if its effective user id is not 0 at the time of
  22.        the call).
  23.  
  24.        Similarly, _✓P_✓s_✓e_✓t_✓g_✓i_✓d sets the group id of the  current  pro-
  25.        cess  to  _✓g_✓i_✓d,  which again must be between 0 and 255. The
  26.        new group id _✓g_✓i_✓d is returned if successful, and EACCDN  is
  27.        returned if permission to change groups is denied.
  28.  
  29. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  30.        _✓P_✓g_✓e_✓t_✓u_✓i_✓d(2)
  31.  
  32. B✓BU✓UG✓GS✓S
  33.        Security  in  MiNT is a joke; don't rely on these calls to
  34.        actually protect you from anything, it's more for informa-
  35.        tional purposes.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.